import java.util.Arrays;

public class OddIntNumberOutOfArray {
	public static void main(String[] args) {

	    int iArr[] = {2, 1, 9, 6, 4, 8, 55, 77, 41, 0, 4};

	    System.out.println("Original array");
	    for (int number : iArr) {
	      System.out.print(number+" ");
	    }

	    System.out.println("\nOdd number from the array");
	    for (int number : iArr) {
	    	if (number % 2 == 1)
	    		System.out.print(number+ " ");
	    }
	}
}
/*Result
Original array
2 1 9 6 4 8 55 77 41 0 4 
Odd number from the array
1 9 55 77 41 
*/
 
